#ifndef TORE_H
#define TORE_H

#include "Objet.h"
#include "Point.h"
#include "Rayon.h"

//(x2+y2+z2+R2-r2)2=4R2(x2+z2)
class Tore : public Objet {

protected:
	float r;
	float R;
	Point centre;

public:
	Tore();
	Tore(float r1, float R1, Point p);
	~Tore();

	virtual bool intersection(Rayon r);
	virtual BoiteEnglobante getBoite();
	bool aBoite();

};
#endif